/**
 * Copyright © 2020 易久批信息技术有限公司. All rights reserved.
 */
package com.dysm.flyweight;

/**
 * 享元模式
 * @author xiay
 * @since 2020/12/12 10:26 下午
 */
public class FlyweightClient {

    public static void main(String[] args) {
        ChessFlyweight chessFlyweight = ChessFlyweightFactory.get("黑色");
        chessFlyweight.display(new Point(1,2));
        chessFlyweight.display(new Point(4,6));
    }
}
